import pyshark

captures = pyshark.FileCapture("1.pcap")

flag ='0'
for c in captures:
    # print(c)
    for h in c:
        if h.layer_name == "icmp" :
            if h.type=='8':
                try:
                    print(h.code)
                    flag+=h.code
                except:
                    continue
flag1=''
for i in range(0,len(flag),8):
    flag1+=chr(int(flag[i:i+8],2))
print(flag1)